Telegram Group & Telegram Channel
6. Conditionals

example

x = 5

if x == 5:
print("x equals 5")
else:
print("x does not equal 5")

it will output

x equals 5

🍏 other operators

x = 6
if x > 5:
print("x greater than 5")
else:
print("x less than 5")

outputs

x greater than 5

other operators

< less than
!= not equal to
>= greater equal to
<= less equal to

smart python

if 3<x<5:

means if x between 3 and 5

@python_codes



tg-me.com/python_codes/10
Create:
Last Update:

6. Conditionals

example

x = 5

if x == 5:
print("x equals 5")
else:
print("x does not equal 5")

it will output

x equals 5

🍏 other operators

x = 6
if x > 5:
print("x greater than 5")
else:
print("x less than 5")

outputs

x greater than 5

other operators

< less than
!= not equal to
>= greater equal to
<= less equal to

smart python

if 3<x<5:

means if x between 3 and 5

@python_codes

BY Python Codes


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/python_codes/10

View MORE
Open in Telegram


Python Codes Telegram | DID YOU KNOW?

Date: |

If riding a bucking bronco is your idea of fun, you’re going to love what the stock market has in store. Consider this past week’s ride a preview.The week’s action didn’t look like much, if you didn’t know better. The Dow Jones Industrial Average rose 213.12 points or 0.6%, while the S&P 500 advanced 0.5%, and the Nasdaq Composite ended little changed.

However, analysts are positive on the stock now. “We have seen a huge downside movement in the stock due to the central electricity regulatory commission’s (CERC) order that seems to be negative from 2014-15 onwards but we cannot take a linear negative view on the stock and further downside movement on the stock is unlikely. Currently stock is underpriced. Investors can bet on it for a longer horizon," said Vivek Gupta, director research at CapitalVia Global Research.

Python Codes from it


Telegram Python Codes
FROM USA